package com.wmyg.antifake.repository;

import com.wmyg.antifake.entity.WxUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 王卓逸
 * @program TODO
 * @description TODO
 * @create 2019-05-12
 */
public interface WxUserRepository extends JpaRepository<WxUser, Integer> {

    WxUser findOneByOpenidOrProvisionalId(String openid, String provisionalId);

    WxUser findByProvisionalId(String provisionalId);

}
